import { ros } from "./ros";

//一键获取地图
export const updateMapPublish = (data: string = "") => {
  const updateMap = new ROSLIB.Topic({
    ros,
    name: "/update_map",
    messageType: "std_msgs/String",
  });

  updateMap.publish(
    new ROSLIB.Message({
      data,
    })
  );
};
